<h2 class="contentTitle">表单验证</h2>


<div class="pageContent">
	
	<form method="post" action="{:U('Order/changestatus')}?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>订单状态修改：</dt>
				<dd>
					<if condition="$result.status eq  1 ">
						<input  checked="checked" type="radio" name="status" id="" value="{$result.status}"/>已付款(1)		
						<input  type="radio" name="status" id="" value="2"/>已发货(2)	
					<else />
						
						<input  type="radio" name="status" id="" value="1"/>已付款(1)
						<input  checked="checked" type="radio" name="status" id="" value="{$result.status}"/>已发货(2)
					</if>
						
						<input type="hidden" name="id" value="{$result.id}"/>
				</dd>
			</dl>
			<!-- <dl>
				<dt>密码：</dt>
				<dd>
					<input type="text" name="pass" maxlength="20" class="required" value="{$result.pass}"/>
					<span class="info">密码</span>
					<input type="hidden" name="id" value="{$info.id}"/>
				</dd>
			</dl> -->
			<dl><dd>*温馨提示：1 代表已付款，2 代表已发货</dd></dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>


<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>
